# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-cpp
pkgver=0.20.0_git20220314
_gitrev=a832195eb3685a279856bb480ce19cff19554b6d
pkgrel=0
pkgdesc="C++ grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-cpp"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-cpp/archive/$_gitrev/tree-sitter-cpp-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
94d05358eb11e9159a62ea7b866388f7bd6e11146a165ce14615fb0436964e8f5b6451945f241df594706c11ea1205e6e04dfe0c032dca7d483b20df3575c8cf  tree-sitter-cpp-a832195eb3685a279856bb480ce19cff19554b6d.tar.gz
"
